All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----com.sun.java.swing.AbstractListModel | +----com.sun.java.swing.DefaultListModel
Warning: serialized objects of this class will not be compatible with future swing releases. The current serialization support is appropriate for short term storage or RMI between Swing1.0 applications. It will not be possible to load serialized Swing1.0 objects with future releases of Swing. The JDK1.2 release of Swing will be the compatibility baseline for the serialized form of Swing objects.
public DefaultListModel()
public int getSize()
public Object getElementAt(int index)
public void copyInto(Object anArray[])trimToSize
public void trimToSize()ensureCapacity
public void ensureCapacity(int minCapacity)setSize
public void setSize(int newSize)capacity
public int capacity()size
public int size()isEmpty
public boolean isEmpty()elements
public Enumeration elements()contains
public boolean contains(Object elem)indexOf
public int indexOf(Object elem)indexOf
public int indexOf(Object elem, int index)lastIndexOf
public int lastIndexOf(Object elem)lastIndexOf
public int lastIndexOf(Object elem, int index)elementAt
public Object elementAt(int index)firstElement
public Object firstElement()lastElement
public Object lastElement()setElementAt
public void setElementAt(Object obj, int index)removeElementAt
public void removeElementAt(int index)insertElementAt
public void insertElementAt(Object obj, int index)addElement
public void addElement(Object obj)removeElement
public boolean removeElement(Object obj)removeAllElements
public void removeAllElements()toString
public String toString()
public Object[] toArray()get
public Object get(int index)set
public Object set(int index, Object element)add
public void add(int index, Object element)remove
public Object remove(int index)clear
public void clear()removeRange
public void removeRange(int fromIndex, int toIndex)
All Packages Class Hierarchy This Package Previous Next Index